<!--
 * @Author: 杜美玲 10238213+dumeiling1@user.noreply.gitee.com
 * @Date: 2022-10-12 10:47:32
 * @LastEditors: 杜美玲 10238213+dumeiling1@user.noreply.gitee.com
 * @LastEditTime: 2022-10-17 17:36:23
 * @FilePath: \家政\家政\team-cooperation-project\src\pages\admin\waiter\Details.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->

<template>
  <!-- 顾客详情页 -->
  <div>
    员工详情页
    <div style="height:20px"></div>
    <div >
      用户名:{{details.username}}
    </div>
    <div >
      姓名:{{ details.realname }}
    </div>
    <div >
      电话号码:{{ details.telephone }}
    </div>
    <div>
      密码:{{ details.password}}
    </div>
  </div>
</template>

<script>
import { findUserDetailsById } from "@/api/user";
export default {
  data() {
    return {
      detailsData: [],
      details:{}
    };
  },
  computed: {},
  methods: {
    //得到顾客详情信息
    async getDetails() {
      let res = await findUserDetailsById({ id :this.$route.query.id});
      this.detailsData = res.data.list;
    },
  },
  created() {
    this.getDetails();
    this.details=this.$route.query;
  },
  mounted() {},
};
</script>
<style scoped>
</style>
      